<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>OpenShoe: udi_cdc.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenShoe
   &#160;<span id="projectnumber">0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">udi_cdc.h</div>  </div>
</div>
<div class="contents">
<a href="udi__cdc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00039"></a>00039 <span class="preprocessor">#ifndef _UDI_CDC_H_</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define _UDI_CDC_H_</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">#include &quot;<a class="code" href="conf__usb_8h.html" title="USB configuration file for CDC application.">conf_usb.h</a>&quot;</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &quot;<a class="code" href="usb__protocol_8h.html" title="USB protocol definitions.">usb_protocol.h</a>&quot;</span>
<a name="l00044"></a>00044 <span class="preprocessor">#include &quot;<a class="code" href="usb__protocol__cdc_8h.html" title="USB Communication Device Class (CDC) protocol definitions.">usb_protocol_cdc.h</a>&quot;</span>
<a name="l00045"></a>00045 <span class="preprocessor">#include &quot;<a class="code" href="udd_8h.html" title="Common API for USB Device Drivers (UDD)">udd.h</a>&quot;</span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &quot;<a class="code" href="udc__desc_8h.html" title="Common API for USB Device Interface.">udc_desc.h</a>&quot;</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &quot;<a class="code" href="udi_8h.html" title="Common API for USB Device Interface.">udi.h</a>&quot;</span>
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00051"></a>00051 <span class="preprocessor">#endif</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span>
<a name="l00067"></a>00067 
<a name="l00068"></a>00068 
<a name="l00075"></a><a class="code" href="structudi__cdc__comm__desc__t.html">00075</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00077"></a><a class="code" href="structudi__cdc__comm__desc__t.html#a6dfc36e8b57260fa2e77bea312a164da">00077</a>         <a class="code" href="structusb__iface__desc__t.html" title="Standard USB interface descriptor structure.">usb_iface_desc_t</a> <a class="code" href="structudi__cdc__comm__desc__t.html#a6dfc36e8b57260fa2e77bea312a164da" title="Standard interface descriptor.">iface</a>;
<a name="l00079"></a><a class="code" href="structudi__cdc__comm__desc__t.html#a398a1894f61cb98fe155d0d9e6318be1">00079</a>         <a class="code" href="structusb__cdc__hdr__desc__t.html" title="CDC Header Functional Descriptor.">usb_cdc_hdr_desc_t</a> <a class="code" href="structudi__cdc__comm__desc__t.html#a398a1894f61cb98fe155d0d9e6318be1" title="CDC Header functional descriptor.">header</a>;
<a name="l00081"></a><a class="code" href="structudi__cdc__comm__desc__t.html#a6643c3fe52c61dc7cb0cc38a9f324d86">00081</a>         <a class="code" href="structusb__cdc__acm__desc__t.html" title="CDC ACM Functional Descriptor.">usb_cdc_acm_desc_t</a> <a class="code" href="structudi__cdc__comm__desc__t.html#a6643c3fe52c61dc7cb0cc38a9f324d86" title="CDC Abstract Control Model functional descriptor.">acm</a>;
<a name="l00083"></a><a class="code" href="structudi__cdc__comm__desc__t.html#aa23728196c57ec96df6a1372c5696313">00083</a>         <a class="code" href="structusb__cdc__union__desc__t.html" title="CDC Union Functional Descriptor.">usb_cdc_union_desc_t</a> <a class="code" href="structudi__cdc__comm__desc__t.html#aa23728196c57ec96df6a1372c5696313" title="CDC Union functional descriptor.">union_desc</a>;
<a name="l00085"></a><a class="code" href="structudi__cdc__comm__desc__t.html#afb9b650303cb414e51b404788fa2eb4e">00085</a>         <a class="code" href="structusb__cdc__call__mgmt__desc__t.html" title="CDC Call Management Functional Descriptor.">usb_cdc_call_mgmt_desc_t</a> <a class="code" href="structudi__cdc__comm__desc__t.html#afb9b650303cb414e51b404788fa2eb4e" title="CDC Call Management functional descriptor.">call_mgmt</a>;
<a name="l00087"></a><a class="code" href="structudi__cdc__comm__desc__t.html#ae4f839a855f80e1942ae1de4cd5562d3">00087</a>         <a class="code" href="structusb__ep__desc__t.html" title="Standard USB endpoint descriptor stcuture.">usb_ep_desc_t</a> <a class="code" href="structudi__cdc__comm__desc__t.html#ae4f839a855f80e1942ae1de4cd5562d3" title="Notification endpoint descriptor.">ep_notify</a>;
<a name="l00088"></a>00088 } <a class="code" href="structudi__cdc__comm__desc__t.html" title="Communication Class interface descriptor.">udi_cdc_comm_desc_t</a>;
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 
<a name="l00097"></a><a class="code" href="structudi__cdc__data__desc__t.html">00097</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00099"></a><a class="code" href="structudi__cdc__data__desc__t.html#a1c46d591be0f1fc12b6b79b43143c903">00099</a>         <a class="code" href="structusb__iface__desc__t.html" title="Standard USB interface descriptor structure.">usb_iface_desc_t</a> <a class="code" href="structudi__cdc__data__desc__t.html#a1c46d591be0f1fc12b6b79b43143c903" title="Standard interface descriptor.">iface</a>;
<a name="l00101"></a><a class="code" href="structudi__cdc__data__desc__t.html#af219d67a67805d90e0c5064dd4ab2c29">00101</a>         <a class="code" href="structusb__ep__desc__t.html" title="Standard USB endpoint descriptor stcuture.">usb_ep_desc_t</a> <a class="code" href="structudi__cdc__data__desc__t.html#af219d67a67805d90e0c5064dd4ab2c29" title="Data IN/OUT endpoint descriptors.">ep_in</a>;
<a name="l00102"></a><a class="code" href="structudi__cdc__data__desc__t.html#a0be1a0edc207babda9677cbf34ac29c4">00102</a>         <a class="code" href="structusb__ep__desc__t.html" title="Standard USB endpoint descriptor stcuture.">usb_ep_desc_t</a> <a class="code" href="structudi__cdc__data__desc__t.html#a0be1a0edc207babda9677cbf34ac29c4">ep_out</a>;
<a name="l00103"></a>00103 } <a class="code" href="structudi__cdc__data__desc__t.html" title="Data Class interface descriptor.">udi_cdc_data_desc_t</a>;
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 
<a name="l00107"></a>00107 <span class="preprocessor">#ifndef UDI_CDC_IAD_STRING_ID</span>
<a name="l00108"></a><a class="code" href="group__udi__cdc__group.html#gab60b7a7764b991aff0c527e8fa0ac8c8">00108</a> <span class="preprocessor"></span><span class="preprocessor">#define UDI_CDC_IAD_STRING_ID   0</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00110"></a>00110 <span class="preprocessor"></span><span class="preprocessor">#ifndef UDI_CDC_COMM_STRING_ID</span>
<a name="l00111"></a><a class="code" href="group__udi__cdc__group.html#ga4fef11b2181a17d8faac207f30c8a088">00111</a> <span class="preprocessor"></span><span class="preprocessor">#define UDI_CDC_COMM_STRING_ID   0</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span><span class="preprocessor">#ifndef UDI_CDC_DATA_STRING_ID</span>
<a name="l00114"></a><a class="code" href="group__udi__cdc__group.html#ga7f130213f9c935f192ad0e7a79654533">00114</a> <span class="preprocessor"></span><span class="preprocessor">#define UDI_CDC_DATA_STRING_ID   0</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span>
<a name="l00118"></a><a class="code" href="group__udi__cdc__group.html#ga186a4ed83a0c245ad4fb377ed96ccd9c">00118</a> <span class="preprocessor">#define UDI_CDC_COMM_EP_SIZE        64</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span>
<a name="l00120"></a><a class="code" href="group__udi__cdc__group.html#gac62f6054c333924c2bef7eddaa9e57ab">00120</a> <span class="preprocessor">#define UDI_CDC_DATA_EPS_SIZE       64</span>
<a name="l00121"></a>00121 <span class="preprocessor"></span>
<a name="l00122"></a>00122 <span class="preprocessor">#ifndef UDI_CDC_MULTIPLE</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span>
<a name="l00124"></a><a class="code" href="group__udi__cdc__group.html#gad564430bd926e661c9de9c0b12b372f8">00124</a> <span class="preprocessor">#  define UDI_CDC_COMM_DESC_IFACE      \</span>
<a name="l00125"></a>00125 <span class="preprocessor">   .iface.bInterfaceNumber       = UDI_CDC_COMM_IFACE_NUMBER,\</span>
<a name="l00126"></a>00126 <span class="preprocessor">   .call_mgmt.bDataInterface     = UDI_CDC_DATA_IFACE_NUMBER,\</span>
<a name="l00127"></a>00127 <span class="preprocessor">   .union_desc.bMasterInterface  = UDI_CDC_COMM_IFACE_NUMBER,\</span>
<a name="l00128"></a>00128 <span class="preprocessor">   .union_desc.bSlaveInterface0  = UDI_CDC_DATA_IFACE_NUMBER,</span>
<a name="l00129"></a><a class="code" href="group__udi__cdc__group.html#gaccf2e8998f50f5d955bf54266c28c484">00129</a> <span class="preprocessor"></span><span class="preprocessor">#  define UDI_CDC_DATA_DESC_IFACE     \</span>
<a name="l00130"></a>00130 <span class="preprocessor">   .iface.bInterfaceNumber       = UDI_CDC_DATA_IFACE_NUMBER,</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span>
<a name="l00133"></a>00133 <span class="preprocessor">#  define UDI_CDC_COMM_DESC_IFACE</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span><span class="preprocessor">#  define UDI_CDC_DATA_DESC_IFACE</span>
<a name="l00135"></a>00135 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00136"></a>00136 <span class="preprocessor"></span>
<a name="l00137"></a><a class="code" href="group__udi__cdc__group.html#ga1e55408092fbf059c01ab7e81b7fd910">00137</a> <span class="preprocessor">#define UDI_CDC_IAD_DESC        {\</span>
<a name="l00138"></a>00138 <span class="preprocessor">   .bLength                      = sizeof(usb_iad_desc_t),\</span>
<a name="l00139"></a>00139 <span class="preprocessor">   .bDescriptorType              = USB_DT_IAD,\</span>
<a name="l00140"></a>00140 <span class="preprocessor">   .bFirstInterface              = UDI_CDC_COMM_IFACE_NUMBER,\</span>
<a name="l00141"></a>00141 <span class="preprocessor">   .bInterfaceCount              = 2,\</span>
<a name="l00142"></a>00142 <span class="preprocessor">   .bFunctionClass               = CDC_CLASS_COMM,\</span>
<a name="l00143"></a>00143 <span class="preprocessor">   .bFunctionSubClass            = CDC_SUBCLASS_ACM,\</span>
<a name="l00144"></a>00144 <span class="preprocessor">   .bFunctionProtocol            = CDC_PROTOCOL_V25TER,\</span>
<a name="l00145"></a>00145 <span class="preprocessor">   .iFunction                    = UDI_CDC_IAD_STRING_ID,\</span>
<a name="l00146"></a>00146 <span class="preprocessor">   }</span>
<a name="l00147"></a>00147 <span class="preprocessor"></span>
<a name="l00149"></a><a class="code" href="group__udi__cdc__group.html#ga7970530df36eefc5119aadd584f82de8">00149</a> <span class="preprocessor">#define UDI_CDC_COMM_DESC        {\</span>
<a name="l00150"></a>00150 <span class="preprocessor">   UDI_CDC_COMM_DESC_IFACE \</span>
<a name="l00151"></a>00151 <span class="preprocessor">   .iface.bLength                = sizeof(usb_iface_desc_t),\</span>
<a name="l00152"></a>00152 <span class="preprocessor">   .iface.bDescriptorType        = USB_DT_INTERFACE,\</span>
<a name="l00153"></a>00153 <span class="preprocessor">   .iface.bAlternateSetting      = 0,\</span>
<a name="l00154"></a>00154 <span class="preprocessor">   .iface.bNumEndpoints          = 1,\</span>
<a name="l00155"></a>00155 <span class="preprocessor">   .iface.bInterfaceClass        = CDC_CLASS_COMM,\</span>
<a name="l00156"></a>00156 <span class="preprocessor">   .iface.bInterfaceSubClass     = CDC_SUBCLASS_ACM,\</span>
<a name="l00157"></a>00157 <span class="preprocessor">   .iface.bInterfaceProtocol     = CDC_PROTOCOL_V25TER,\</span>
<a name="l00158"></a>00158 <span class="preprocessor">   .iface.iInterface             = UDI_CDC_COMM_STRING_ID,\</span>
<a name="l00159"></a>00159 <span class="preprocessor">   .header.bFunctionLength       = sizeof(usb_cdc_hdr_desc_t),\</span>
<a name="l00160"></a>00160 <span class="preprocessor">   .header.bDescriptorType       = CDC_CS_INTERFACE,\</span>
<a name="l00161"></a>00161 <span class="preprocessor">   .header.bDescriptorSubtype    = CDC_SCS_HEADER,\</span>
<a name="l00162"></a>00162 <span class="preprocessor">   .header.bcdCDC                = LE16(0x0110),\</span>
<a name="l00163"></a>00163 <span class="preprocessor">   .call_mgmt.bFunctionLength    = sizeof(usb_cdc_call_mgmt_desc_t),\</span>
<a name="l00164"></a>00164 <span class="preprocessor">   .call_mgmt.bDescriptorType    = CDC_CS_INTERFACE,\</span>
<a name="l00165"></a>00165 <span class="preprocessor">   .call_mgmt.bDescriptorSubtype = CDC_SCS_CALL_MGMT,\</span>
<a name="l00166"></a>00166 <span class="preprocessor">   .call_mgmt.bmCapabilities     = \</span>
<a name="l00167"></a>00167 <span class="preprocessor">                        CDC_CALL_MGMT_SUPPORTED | CDC_CALL_MGMT_OVER_DCI,\</span>
<a name="l00168"></a>00168 <span class="preprocessor">   .acm.bFunctionLength          = sizeof(usb_cdc_acm_desc_t),\</span>
<a name="l00169"></a>00169 <span class="preprocessor">   .acm.bDescriptorType          = CDC_CS_INTERFACE,\</span>
<a name="l00170"></a>00170 <span class="preprocessor">   .acm.bDescriptorSubtype       = CDC_SCS_ACM,\</span>
<a name="l00171"></a>00171 <span class="preprocessor">   .acm.bmCapabilities           = CDC_ACM_SUPPORT_LINE_REQUESTS,\</span>
<a name="l00172"></a>00172 <span class="preprocessor">   .union_desc.bFunctionLength   = sizeof(usb_cdc_union_desc_t),\</span>
<a name="l00173"></a>00173 <span class="preprocessor">   .union_desc.bDescriptorType   = CDC_CS_INTERFACE,\</span>
<a name="l00174"></a>00174 <span class="preprocessor">   .union_desc.bDescriptorSubtype= CDC_SCS_UNION,\</span>
<a name="l00175"></a>00175 <span class="preprocessor">   .ep_notify.bLength            = sizeof(usb_ep_desc_t),\</span>
<a name="l00176"></a>00176 <span class="preprocessor">   .ep_notify.bDescriptorType    = USB_DT_ENDPOINT,\</span>
<a name="l00177"></a>00177 <span class="preprocessor">   .ep_notify.bEndpointAddress   = UDI_CDC_COMM_EP,\</span>
<a name="l00178"></a>00178 <span class="preprocessor">   .ep_notify.bmAttributes       = USB_EP_TYPE_INTERRUPT,\</span>
<a name="l00179"></a>00179 <span class="preprocessor">   .ep_notify.wMaxPacketSize     = LE16(UDI_CDC_COMM_EP_SIZE),\</span>
<a name="l00180"></a>00180 <span class="preprocessor">   .ep_notify.bInterval          = 0xFF,\</span>
<a name="l00181"></a>00181 <span class="preprocessor">   }</span>
<a name="l00182"></a>00182 <span class="preprocessor"></span>
<a name="l00183"></a>00183 
<a name="l00185"></a><a class="code" href="group__udi__cdc__group.html#gade744816217f972675f9e7e5c2204d93">00185</a> <span class="preprocessor">#define UDI_CDC_DATA_DESC     {\</span>
<a name="l00186"></a>00186 <span class="preprocessor">   UDI_CDC_DATA_DESC_IFACE \</span>
<a name="l00187"></a>00187 <span class="preprocessor">   .iface.bLength                = sizeof(usb_iface_desc_t),\</span>
<a name="l00188"></a>00188 <span class="preprocessor">   .iface.bDescriptorType        = USB_DT_INTERFACE,\</span>
<a name="l00189"></a>00189 <span class="preprocessor">   .iface.bAlternateSetting      = 0,\</span>
<a name="l00190"></a>00190 <span class="preprocessor">   .iface.bNumEndpoints          = 2,\</span>
<a name="l00191"></a>00191 <span class="preprocessor">   .iface.bInterfaceClass        = CDC_CLASS_DATA,\</span>
<a name="l00192"></a>00192 <span class="preprocessor">   .iface.bInterfaceSubClass     = 0,\</span>
<a name="l00193"></a>00193 <span class="preprocessor">   .iface.bInterfaceProtocol     = 0,\</span>
<a name="l00194"></a>00194 <span class="preprocessor">   .iface.iInterface             = UDI_CDC_DATA_STRING_ID,\</span>
<a name="l00195"></a>00195 <span class="preprocessor">   .ep_in.bLength                = sizeof(usb_ep_desc_t),\</span>
<a name="l00196"></a>00196 <span class="preprocessor">   .ep_in.bDescriptorType        = USB_DT_ENDPOINT,\</span>
<a name="l00197"></a>00197 <span class="preprocessor">   .ep_in.bEndpointAddress       = UDI_CDC_DATA_EP_IN,\</span>
<a name="l00198"></a>00198 <span class="preprocessor">   .ep_in.wMaxPacketSize         = LE16(UDI_CDC_DATA_EPS_SIZE),\</span>
<a name="l00199"></a>00199 <span class="preprocessor">   .ep_in.bmAttributes           = USB_EP_TYPE_BULK,\</span>
<a name="l00200"></a>00200 <span class="preprocessor">   .ep_in.bInterval              = 0,\</span>
<a name="l00201"></a>00201 <span class="preprocessor">   .ep_out.bLength               = sizeof(usb_ep_desc_t),\</span>
<a name="l00202"></a>00202 <span class="preprocessor">   .ep_out.bDescriptorType       = USB_DT_ENDPOINT,\</span>
<a name="l00203"></a>00203 <span class="preprocessor">   .ep_out.bEndpointAddress      = UDI_CDC_DATA_EP_OUT,\</span>
<a name="l00204"></a>00204 <span class="preprocessor">   .ep_out.wMaxPacketSize        = LE16(UDI_CDC_DATA_EPS_SIZE),\</span>
<a name="l00205"></a>00205 <span class="preprocessor">   .ep_out.bmAttributes          = USB_EP_TYPE_BULK,\</span>
<a name="l00206"></a>00206 <span class="preprocessor">   .ep_out.bInterval             = 0,\</span>
<a name="l00207"></a>00207 <span class="preprocessor">   }</span>
<a name="l00208"></a>00208 <span class="preprocessor"></span>
<a name="l00209"></a>00209 
<a name="l00210"></a>00210 
<a name="l00212"></a>00212 <span class="keyword">extern</span> <a class="code" href="group__udc__desc__group.html#gae086959cec07a2e71ab069e25a51764f" title="Defines the memory&#39;s location of USB descriptors.">UDC_DESC_STORAGE</a> <a class="code" href="structudi__api__t.html" title="UDI API.">udi_api_t</a> <a class="code" href="group__udi__cdc__group.html#gad7b0a90350a1f1a7c62fab1a749bf687" title="Global structure which contains standard UDI API for UDC.">udi_api_cdc_comm</a>;
<a name="l00213"></a>00213 <span class="keyword">extern</span> <a class="code" href="group__udc__desc__group.html#gae086959cec07a2e71ab069e25a51764f" title="Defines the memory&#39;s location of USB descriptors.">UDC_DESC_STORAGE</a> <a class="code" href="structudi__api__t.html" title="UDI API.">udi_api_t</a> <a class="code" href="group__udi__cdc__group.html#ga3f85c229cc3218b75cb4844b8e9ad2d7">udi_api_cdc_data</a>;
<a name="l00214"></a>00214 
<a name="l00222"></a>00222 
<a name="l00228"></a>00228 <span class="keywordtype">void</span> <a class="code" href="group__udi__cdc__group.html#ga5507164c7c4ff2c9b94af48229dc0c3c" title="Notify a state change of DCD signal.">udi_cdc_ctrl_signal_dcd</a>(<span class="keywordtype">bool</span> b_set);
<a name="l00229"></a>00229 
<a name="l00235"></a>00235 <span class="keywordtype">void</span> <a class="code" href="group__udi__cdc__group.html#ga6b34b223f6c03cd35fc16d29cb9cfb78" title="Notify a state change of DSR signal.">udi_cdc_ctrl_signal_dsr</a>(<span class="keywordtype">bool</span> b_set);
<a name="l00236"></a>00236 
<a name="l00240"></a>00240 <span class="keywordtype">void</span> <a class="code" href="group__udi__cdc__group.html#gaf62c55c329d7e7ff3913274b124e54aa" title="Notify a framing error.">udi_cdc_signal_framing_error</a>(<span class="keywordtype">void</span>);
<a name="l00241"></a>00241 
<a name="l00245"></a>00245 <span class="keywordtype">void</span> <a class="code" href="group__udi__cdc__group.html#gab6dd1be8afa57a1bece870338bdc5f74" title="Notify a parity error.">udi_cdc_signal_parity_error</a>(<span class="keywordtype">void</span>);
<a name="l00246"></a>00246 
<a name="l00250"></a>00250 <span class="keywordtype">void</span> <a class="code" href="group__udi__cdc__group.html#ga7730a564c9cb117af611958500a4fa7f" title="Notify a overrun.">udi_cdc_signal_overrun</a>(<span class="keywordtype">void</span>);
<a name="l00251"></a>00251 
<a name="l00257"></a>00257 <span class="keywordtype">bool</span> <a class="code" href="group__udi__cdc__group.html#gab5beb4e918e089e0eacf20dba1df73ea" title="This function checks if a character has been received on the CDC line.">udi_cdc_is_rx_ready</a>(<span class="keywordtype">void</span>);
<a name="l00258"></a>00258 
<a name="l00264"></a>00264 <span class="keywordtype">int</span> <a class="code" href="group__udi__cdc__group.html#ga202f3fd7b153f6e1a41601735e0febb6" title="Waits and gets a value on CDC line.">udi_cdc_getc</a>(<span class="keywordtype">void</span>);
<a name="l00265"></a>00265 
<a name="l00274"></a>00274 iram_size_t <a class="code" href="group__udi__cdc__group.html#gaa7374616de8bc3a83de3f1884b56fa39" title="Reads a RAM buffer on CDC line.">udi_cdc_read_buf</a>(<span class="keywordtype">int</span>* buf, iram_size_t size);
<a name="l00275"></a>00275 
<a name="l00282"></a>00282 <span class="keywordtype">bool</span> <a class="code" href="group__udi__cdc__group.html#ga7d0d458a5731da95dd05f30714c42dde" title="This function checks if a new character sent is possible The type int is used to support scanf redire...">udi_cdc_is_tx_ready</a>(<span class="keywordtype">void</span>);
<a name="l00283"></a>00283 
<a name="l00292"></a>00292 <span class="keywordtype">int</span> <a class="code" href="group__udi__cdc__group.html#ga8faae3fcf4911017c0fcf0aa127179f6" title="Puts a byte on CDC line The type int is used to support printf redirection from compiler LIB...">udi_cdc_putc</a>(<span class="keywordtype">int</span> value);
<a name="l00293"></a>00293 
<a name="l00302"></a>00302 iram_size_t <a class="code" href="group__udi__cdc__group.html#ga88f09b3f954620d37bf882e6d1874c42" title="Writes a RAM buffer on CDC line.">udi_cdc_write_buf</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>* buf, iram_size_t size);
<a name="l00303"></a>00303 
<a name="l00305"></a>00305 
<a name="l00307"></a>00307 
<a name="l00308"></a>00308 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00309"></a>00309 <span class="preprocessor"></span>}
<a name="l00310"></a>00310 <span class="preprocessor">#endif</span>
<a name="l00311"></a>00311 <span class="preprocessor"></span><span class="preprocessor">#endif // _UDI_CDC_H_</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Dec 19 2011 21:04:51 for OpenShoe by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
